package com.logos.musicframe.service;

import com.logos.musicframe.entity.Playlist;
import com.logos.musicframe.req.PlaylistReq;
import com.logos.musicframe.resp.PlaylistResp;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 歌单表(Playlist)表服务接口
 *
 * @author logos
 * @since 2025-06-14 21:28:44
 */
public interface PlaylistService {

    /**
     * 通过ID查询单条数据
     *
     * @param
     * @return 实例对象
     */
    PlaylistResp queryById(PlaylistReq playlistReq);

    /**
     * 新增数据
     *
     * @param playlist 实例对象
     * @return 实例对象
     */
    Playlist insert(Playlist playlist);

    /**
     * 修改数据
     *
     * @param playlist 实例对象
     * @return 实例对象
     */
    Playlist update(Playlist playlist);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    List<PlaylistResp> queryCreated(Integer userId);

    PlaylistResp add(PlaylistReq playlistReq);

    List<PlaylistResp> queryByIds(List<Long> playListIdList);

    List<PlaylistResp> queryAll();

    List<PlaylistResp> getRecommendPlaylist();
}
